<?php

/**
 * Description of ClienteController
 *
 * @author Márlon
 */
class API_ClienteController extends Zend_Rest_Controller {

    protected $_Service;

    public function init() {
        $this->_helper->viewRenderer->setNoRender(true);
        $this->_Service = new Application_Service_ClienteService();
    }

    public function deleteAction() {
        
    }

    public function getAction() {
        $result = $this->_Service->findWithAdd($this->_getParam("id"));
        print_r($result["Cliente"]);
        echo "<br>---------------------------------------------------<br>";
        print_r($result["Endereco"]);
    }

    public function indexAction() {
        
    }

    public function postAction() {
        
    }

    public function putAction() {
        
    }

}
